home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / scuba.swf / scripts / DefineSprite_283 / frame_28 / DoAction.as
Text File  |  2012-01-07  |  532b  |  24 lines

  1. if(20 < _root.gTimeCounter)
  2. {
  3.    if(0 < _root.gOxygenStatus)
  4.    {
  5.       _root.gOxygenStatus--;
  6.       _root.oxygenGauge.gotoAndStop("oxy" + _root.gOxygenStatus);
  7.       vOxyBegin = Math.round(Number(getTimer() / 1000));
  8.       if(_root.LOW_OXYGEN >= _root.gOxygenStatus)
  9.       {
  10.          _root.lowOxyWarning.gotoAndStop("warning");
  11.       }
  12.       else
  13.       {
  14.          _root.lowOxyWarning.gotoAndStop("base");
  15.       }
  16.       gotoAndPlay(10);
  17.    }
  18.    else
  19.    {
  20.       _root.fnEndGame();
  21.       gotoAndStop(1);
  22.    }
  23. }
  24.